﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
//using System.Windows.Forms;

namespace NetworkEasyShare {
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application {
        private void appStartup(object sender, StartupEventArgs e)
        {
            if (Environment.UserInteractive) {
                trayIcon tray = new trayIcon();
                tray.trayNotifyIcon.Visible = true;

                tray.trayNotifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
                tray.trayNotifyIcon.BalloonTipTitle = "Delayed Write Failed";
                tray.trayNotifyIcon.BalloonTipText = "Some of your data has been lost.";
                tray.trayNotifyIcon.ShowBalloonTip(0);

                broadcastMessage bm = new broadcastMessage(tray);
                bm.sendInfo();
            }

            
            //bm.broadcastMessage("nick:nickname");
            //Console.Write(bm.receiveMessage());
        }
    }
}
